package com.qiezi.bean;

import java.text.SimpleDateFormat;
import java.util.Date;

public class PaypalBean {

    private String money;
    private int status;
    private long createtime;
    private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    private String strCreatetime;

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getCreatetime() {
        return strCreatetime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
        strCreatetime = sdf.format(new Date(createtime));
    }

    @Override
    public String toString() {
        StringBuilder str = new StringBuilder("\n{\tmoney:").append(getMoney())
                .append("\n\tstatus:").append(getStatus())
                .append("\n\tdate:").append(getCreatetime())
                .append("\n}");
        return str.toString();
    }
}
